package net.sky.oa.service.post.impl;
import java.util.List;
import java.util.Map;

import javax.annotation.Resource;

import net.sky.oa.dao.post.ReplyPostDao;
import net.sky.oa.model.ReplyPost;
import net.sky.oa.service.post.ReplyPostService;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.htsoft.core.service.impl.BaseServiceImpl;

@Service
@Transactional
public class ReplyPostServiceImpl extends BaseServiceImpl<ReplyPost> implements ReplyPostService {
	
	private ReplyPostDao replypostdao;
	
	@Resource
	public void setDao(ReplyPostDao replypostdao){
		super.setDao(replypostdao);
		this.replypostdao=replypostdao;
	}
    
	@Transactional(readOnly=true)
	public List<ReplyPost> findAllReplyPost() {
		return this.replypostdao.findAllReplyPost();
	}

	public List<ReplyPost> findByHql(String paramString) {
		return null;
	}
	
	@Transactional(readOnly=true)
	public Map QueryReplies(Long rid,int currentPage,int lineSize) {
		return this.replypostdao.QueryReplies(rid, currentPage, lineSize);
	}
	
	public void deleteAllReply(Long pid){
		this.replypostdao.deleteAllReply(pid);
	}

	
}
